package com.learning.java.optimize.id.generate.uuid;

import java.util.UUID;

import com.learning.java.optimize.id.generate.IIdService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


/**
 * ClassName: UuidServiceImpl
 * Description: jdk uuid实现
 * Date: 2020/3/21 14:38 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Slf4j
@Service("uuidServiceImpl")
public class UuidServiceImpl implements IIdService {

    @Override
    public void createId() {
        log.info("insert into id_generate(id) values('" + UUID.randomUUID() + "');");
        // System.out.println("insert into id_generate(id) values('" + UUID.randomUUID() + "');");
    }
}
